<div class="control-group ">
	<label class="control-label">文件系统</label>
	<div class="controls">
		{if $ftp_enabled}
		<label class="radio inline"><input type="radio" value="Ftp" name="opt[filemgr][type]" {'Ftp'|checked:$options.type}/>FTP(扩展方式)</label>
		{/if}
		<label class="radio inline"><input type="radio" value="FtpSock" name="opt[filemgr][type]" {'FtpSock'|checked:$options.type}/>FTP(SOCKETS)</label>
		{if $ssh2_enabled}
		<label class="radio inline"><input type="radio" value="SSH2" name="opt[filemgr][type]" {'SSH2'|checked:$options.type}/>SSH2</label>
		{/if}
	</div>
</div>

<div class="control-group" id="connection_type">
	<label class="control-label">安全链接</label>
	<div class="controls">
		<label class="radio inline"><input type="radio" checked="checked" name="opt[filemgr][connection_type]" value="" {''|checked:$options.connection_type}/>不使用安全链接</label>
		<label class="radio inline"><input type="radio" name="opt[filemgr][connection_type]" value="ftps" {'ftps'|checked:$options.connection_type}/>使用ftps</label>									
	</div>
</div>

<div class="control-group">
	<label class="control-label" for="filemgr_host">主机</label>
	<div class="controls">
		<input type="text" id="filemgr_host" name="opt[filemgr][hostname]" value="{$options.hostname}" validate="{ validate:{ required:true,messages:{ required:'主机不能为空。' } } }" class="span5"/>
		<span class="help-inline">域名或IP址</span>
	</div>
</div>
<div class="control-group">
	<label class="control-label" for="filemgr_port">端口</label>
	<div class="controls">
		<input type="text" id="filemgr_port" name="opt[filemgr][port]" value="{$options.port}" validate="{ validate:{ required:true,digits:true ,messages:{ required:'端口不能为空。', digits:'请输入合法的端口号。' } } }" class="span5"/>		
	</div>
</div>
					
<div class="control-group">
	<label class="control-label" for="filemgr_base">根路径</label>
	<div class="controls">
		<input type="text" id="filemgr_base" name="opt[filemgr][base]" value="{$options.base}" class="span5"/>		
	</div>
</div>